﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Notice.ascx.cs" Inherits="ZHDJ.Web.PortalParts.Notice" %>
<div class="headlines">
    <div>
        <div class="messinfo"><span>欢迎访问山海天旅游度假区党建信息管理平台!</span> </div>
        <div class="branchdaoheng">
            <ul class="fr">

                <li>
                    <div id="branchdaoContainer">
                        <a href="#" id="branchdaoButton"><span>组织导航</span><em></em></a>
                        <div style="clear: both"></div>
                        <div id="branchdaoBox">
                            <div id="branchdaoForm">
                                <fieldset id="body">
                                    <fieldset>
                                        <iframe frameborder="0" src="#" id="ifbranchdao" style="width: 248px; height: 330px"></iframe>
                                    </fieldset>

                                </fieldset>
                            </div>
                        </div>


                    </div>

                </li>


            </ul>
        </div>
        <div class="memberinfo" runat="server" id="noLogin">
            <ul class="fr">
                <li>
                    <a href="/Login.aspx" class="ilogin">请登陆</a>

                </li>
                <li class="spacer"></li>
                <li>

                    <a href="Register.aspx">注册</a>
                </li>
                <li class="spacer"></li>

            </ul>
        </div>
        <div class="memberinfo" runat="server" id="logined" visible="false">
            <ul class="fr">
                <li>
                    <a href="/app/PersonalMain.aspx" class="ilogin">
                        <asp:Literal runat="server" ID="litUserName"></asp:Literal></a>
                    <a href="javascript:void(0);" onclick="logout()">退出</a></li>
                <li class="spacer"></li>
                <li><a href="/app/PersonalMain.aspx" target="_blank">个人中心</a></li>
                <asp:Literal runat="server" ID="litBranchMain" Visible="false">  
                    <li class="spacer"></li>
                    <li><a href="/app/BranchMain.aspx" target="_blank">组织中心</a></li>

                </asp:Literal>
                <asp:Literal runat="server" ID="litMain" Visible="true">
                     <li class="spacer"></li>
                    <li><a href="/app/main.aspx" target="_blank">后台管理</a></li>
                </asp:Literal>

                <asp:Literal runat="server" ID="litBuzhang" Visible="false">
                     <li class="spacer"></li>
                    <li><a href="/app/buzhang.aspx#/App/PersonalCenter/Module/HardParty/HardPartyList.aspx" target="_blank">困难党员</a></li>
                </asp:Literal>
                <li class="spacer"></li>
            </ul>
            <div style="display: none" id="loginoutDiv">
                <asp:Button runat="server" ID="btnLoginOut" OnClick="btnLoginOut_Click" Text="退出" />
            </div>
        </div>


    </div>
</div>
<div class="inbox">
    <h1>从严治党就要把纪律和规矩严起来 密切党同人民群众的联系
    </h1>
</div>
<script type="text/javascript">
    //退出
    function logout() {

        $("#loginoutDiv input").click();
    }

    var baranchdaoheng = function () {
        var button = $('#branchdaoButton');
        var box = $('#branchdaoBox');
        var form = $('#branchdaoForm');
        button.removeAttr('href');
        button.mouseup(function (login) {
            box.toggle();
            button.toggleClass('active');

        });
        form.mouseup(function () {
            return false;
        });
        $(this).mouseup(function (login) {
            if (!($(login.target).parent('#branchdaoButton').length > 0)) {
                button.removeClass('active');
                button.toggleClass('out');
                box.hide();
            }
        });
    };

    function closeDaoheng() {
        var button = $('#branchdaoButton');
        var box = $('#branchdaoBox');
        button.removeClass('active');
        button.toggleClass('out');
        box.hide();
    }

    $(function () {
        baranchdaoheng();
        $("#ifbranchdao").attr("src", "/Portal/Other/BranchNavigation.aspx");
    });
</script>
